'use strict';

module.exports = app => {
  const { router, controller, middleware } = app;
  const adaptor = middleware.adaptor();

  router.post('/apis.json', adaptor, controller.apis.index);
  
  router.get('/*', adaptor, controller.home.index);
};
